package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (MasterAddress)表实体类
 *
 * @author makejava
 * @since 2020-12-01 22:17:51
 */
@Data
@TableName("master_address")
public class MasterAddress extends Model<MasterAddress> {
    //地址主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //纬度
    private String lng;
    //经度
    private String lat;
    //技师外键
    private Integer mid;
    //状态：0在忙，1空闲，2请假
    private String status;
    //
    private String address;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}